<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="__BOOTSTRAP__/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="__BOOTSTRAP__/css/bootstrap-theme.min.css">
    <link rel="stylesheet" type="text/css" href="__CSS__/msg.css"/>


    <script type="text/javascript" src="__JS__/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="__BOOTSTRAP__/js/bootstrap.min.js"></script>

    <script type="javascript">
        $('#myTab a').click(function (e) {
            e.preventDefault()
            $(this).tab('show')
        })
    </script>
</head>
<body>

<div class="bs-example bs-example-tabs" role="tabpanel" data-example-id="togglable-tabs" id="table">
    <ul id="myTab" class="nav nav-tabs" role="tablist">
        <li role="presentation" class="active"><a href="#home" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">添加权限</a></li>
    </ul>
    <div id="myTabContent" class="tab-content home">
        <div role="tabpanel" class="tab-pane fade in active" id="home" aria-labelledBy="home-tab">
            <table class="table table-striped table-bordered">
                <form action="{:U('Auth/addHandle')}" method="post"> 
                    <tr>
                        <td>规则标示：</td>
                        <td><input type="text" name="name" class="form-control"></td>
                    </tr>
                    <tr>
                        <td>规则简介：</td>
                        <td><input type="text" name="title" class="form-control"></td>
                    </tr>
                    <tr>
                        <td>所属模块：</td>
                        <td>
                            <select name="module_id" id="" class="form-control">
                                <foreach name="module" item="v" >
                                    <option value="{$v.id}">{$v.module_name}</option>    
                                </foreach>   
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>状态：</td>
                        <td>
                            <select name="status" id="" class="form-control">
                                <option value="1">启用</option>
                                <option value="2">禁用</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <input type="submit" class="btn btn-primary" value="提交" style="width:30%;margin:0 auto;">
                        </td>
                    </tr>
                </form>
            </table>

        </div>

    </div>
</div>

</body>
</html>